<?php namespace Home\Controller; 

use Hdphp\Controller\Controller;

//注册控制器
class ZhuceController extends Controller{
		private $Model;
	//构造函数
	public function __init(){
		$this->Model = new \Common\Model\Home_user;
	}
	
	
	
//	注册页面
    public function index(){
//  	p($_POST);
    	if(IS_POST){
    		
			if(!$this->Model->store()) View::error($this->Model->getError());
//			exit;
			View::success('注册成功',U('Denglu/index'));
			
    	}
       View::make();
    }
	
	
	public function code(){
		Code::width(200)->height(100)->background('#999999')->fontSize(45)->fontColor('#f00f00')->num(4)->make();

	}
	
	
}
